var express = require('express');
var router = express.Router();

var check = require('./check');
var checkLogin = check['checkLogin'];
var checkNotLogin = check['checkNotLogin'];

router.get('/',checkLogin);
router.get('/',function(req,res,next){
    req.session.user = null;
    res.json({'message':'登出成功','success':true})
});

module.exports = router;